package Package.Text.Test1;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test1 {
    public static final void TTEST1() throws IOException {
        FileInputStream fos=new FileInputStream("D:\\insert\\java.txt");
        FileOutputStream fis=new FileOutputStream("D:\\insert\\b.txt");
        int by;
        while ((by=fos.read())!=-1){
            fis.write(by);
        }
        fos.close();
        fis.close();
    }
}
